VT-d: fix iommu_domain_destroy
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Jan 2010 09:06:36 +0000 (09:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 4 Jan 2010 09:06:36 +0000 (09:06 +0000)
commit07d20ae391d1cc8acd3f8d0c9bcbd9aa109dced5
treede3dcb00eba840a37a5a6394561facf3cb3bc294
parent1c707e89c23fb9810f1e5e42510b79a5f3973d5b
VT-d: fix iommu_domain_destroy

Currently, g2m_ioport list and mapped_rmrrs always won't be released
in iommu_domain_destroy, because the function returns before those
code. It causes potential leak. This patch releases them, and thus
avoid the potential leak.

Signed-off-by: Weidong Han <Weidong.han@intel.com>
xen/drivers/passthrough/iommu.c